Skip to main content

All Questions

5votes
3answers
3kviews

Mars Rover technical Challenge in OOP

I am trying to practice OOP and TDD concepts, I have written this code for Mars rover challenge from marsrovertechchallenge . Can you please review my code from my GitHub repository? Or you can ...
Sara Elmenshawy's user avatar
4votes
3answers
101views

Print the first, last, and in-between integers of a range

Given our spec from Code Golf: Given two integers, output the two integers, and then the range between them. The order of the range must be the same as the input. Examples: ...
Marco Tulio Avila Cerón's user avatar
5votes
2answers
6kviews

Mars Rover Simulator

Problem Statement Consider a rover and a plateau of size nxn. The rover takes three type of instructions L,R and M. 'L' and 'R' rotate the rover in the left and right direction. 'M' moves the ...
leoOrion's user avatar
2votes
1answer
881views

Raindrops in Java

Problem Statement: Write a program that converts a number to a string, the contents of which depends on the number's prime factors. If the number contains 3 as a prime factor, output '...
CodeYogi's user avatar
4votes
3answers
2kviews

Binary string to decimal conversion

Problem Statement: Write a program that will convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles Implement binary to decimal ...
CodeYogi's user avatar
5votes
1answer
467views

Let's revisit Roman numbers

Problem Statement: Write a function to convert from normal numbers to Roman Numerals: e.g. 1 => I 10 => X 7 => VII Code: ...
CodeYogi's user avatar
4votes
2answers
1kviews

Let's play Scrabble

Problem: Write a program that, given a word, computes the scrabble score for that word. Code: ...
CodeYogi's user avatar
4votes
3answers
2kviews

Count words in a string

Continuing my TDD from exercism. Write a program that given a phrase can count the occurrences of each word in that phrase. For example for the input ...
CodeYogi's user avatar
4votes
1answer
205views

Simple Ruby program to model a prepaid transit card system

I have written a simple Ruby program to model a transit card system which aims to address the following user stories. I wanted to see whether I could get any feedback on it. My main interest is ...
Ben Hawker's user avatar

close